package net.hn.hnms.biz.mine.domain;

import javax.persistence.*;
import java.util.Objects;

/**
 * Author: PanSX
 * Date: 2022/8/5 15:41
 */
@Entity
@Table(name = "dim_model", schema = "public", catalog = "huaneng-smart-mine")
public class DimModel {
    private String sysName;
    private String sysModel;

    @Id
    @Column(name = "sys_name")
    public String getSysName() {
        return sysName;
    }

    public void setSysName(String sysName) {
        this.sysName = sysName;
    }

    @Basic
    @Column(name = "sys_model")
    public String getSysModel() {
        return sysModel;
    }

    public void setSysModel(String sysModel) {
        this.sysModel = sysModel;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DimModel dimModel = (DimModel) o;
        return Objects.equals(sysName, dimModel.sysName) &&
                Objects.equals(sysModel, dimModel.sysModel);
    }

    @Override
    public int hashCode() {
        return Objects.hash(sysName, sysModel);
    }
}
